package com.younion.vo;

import cpcns.component.common.base.BaseVO;
import cpcns.persister.converter.IDomainObject;
import cpcns.persister.service.CompositeID;


/**
 * 
 * 描述: 商品类型 实体类
 *
 * @property label="商品类型" lower="productkind" upper="PRODUCTKIND" instance="productKind" table="t_Product_Kind"
 *
 * Copyright (c) 2009 Excellence Network Co.,LTD All right reserved.
 *
 */
public class ProductKindVO extends BaseVO implements IDomainObject,Cloneable{

	/**  */
	private static final long serialVersionUID = -1L;

	/**
	 * 类型ID
	 * @label 类型ID
	 * @code id
	 * @type NUMERIC
	 * @javaType Integer
	 * @pk instance="Id"
	 * @required true
	 * @index 1
	 * @oddeven 0
	 */
	private Integer id;

	/**
	 * 名称
	 * @label 名称
	 * @code name
	 * @type VARCHAR
	 * @javaType String
	 * @show 
	 * @isLast 
	 * @length 20
	 * @index 2
	 * @oddeven 1
	 * @faint 
	 */
	private String name;
	
	private CustomerVO customerVO;

	private Integer customerId;
	private String customerName;
	/**
	 * 
	 */
	public ProductKindVO() {
	}

	/** 
	 * @return the id
	 */ 
	public Integer getId() {
		return id;
	}

	/** 
	 * @param id the id to set 
	 */ 
	public void setId(Integer id) {
		this.id = id;
	}

	/** 
	 * @return the name
	 */ 
	public String getName() {
		return name;
	}

	/** 
	 * @param name the name to set 
	 */ 
	public void setName(String name) {
		this.name = name;
	}
	
	public CustomerVO getCustomerVO() {
		return customerVO;
	}

	public void setCustomerVO(CustomerVO customerVO) {
		this.customerVO = customerVO;
	}

	public CompositeID getCompositeID(){
		CompositeID _id = super.getCompositeID();
		_id.clear();
		if(id != null){
			_id.addKey("id", id);
		}
		return _id;
	}

	public Integer getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	
	
}
